import request from '@/utils/request';

const prefix = '/exam'

export function getExamListService(params) {
  return request({
    url: `${prefix}/semiLogin/redis/list`,
    method: 'get',
    params
  });
}

export function getExamFirstQuestionService(examId) {
  return request({
    url: `${prefix}/getExamFirstQuestion`,
    method: 'get',
    params: {
      examId
    }
  });
}


export function preExamQuestionService(examId, questionId) {
  return request({
    url: `${prefix}/preQuestion`,
    method: 'get',
    params: {
      examId,
      questionId
    }
  });
}

export function nextExamQuestionService(examId, questionId) {
  return request({
    url: `${prefix}/nextQuestion`,
    method: 'get',
    params: {
      examId,
      questionId
    }
  });
}
